/*
 * @Author: jackning 270580156@qq.com
 * @Date: 2024-02-02 14:40:19
 * @LastEditors: jackning 270580156@qq.com
 * @LastEditTime: 2024-06-07 11:33:22
 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
 *   Please be aware of the BSL license restrictions before installing Bytedesk IM –
 *  selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
 *  仅支持企业内部员工自用，严禁私自用于销售、二次销售或者部署SaaS方式销售
 *  Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE
 *  contact: 270580156@qq.com
 * 联系：270580156@qq.com
 * Copyright (c) 2024 by bytedesk.com, All Rights Reserved.
 */
import { HTTP_CLIENT } from "@/utils/constants";
import request from "@/apis/request";

// /**
//  *
//  * @param pageNumber
//  * @param pageSize
//  * @returns
//  */
// export async function queryMyOrgs(pageNumber: number, pageSize: number) {
//   return request<ORG.queryOrgsPageResult>("/api/v1/org/query", {
//     method: "GET",
//     params: {
//       pageNumber,
//       pageSize,
//       client: HTTP_CLIENT,
//     },
//   });
// }

export async function getOrg(uid: string) {
  return request<ORG.HttpResult>("/api/v1/org/uid", {
    method: "GET",
    params: {
      uid,
      client: HTTP_CLIENT,
    },
  });
}
